def static_map(location,zoom=15,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None):
    url = "https://restapi.amap.com/v3/staticmap?parameters"
    key = "678a888f10d1b680e496b1b14cac9b38"
    params = {
        "key":key,
        "location":location,
        "zoom":zoom,
        "size":size,
        "scale":scale,
        "markers":markers,
        "labels":labels,
        "paths":paths,
        "traffic":traffic,
        "sig":sig,
        "output":"json"
        }
    
    r = requests.get(url,params=params)
    data = Image.open(BytesIO(r.content))
    return data